<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<div class="panel-body">
	<div class="list-group">
		<c:forEach items="${notificationPage.list}" var="notification">
		<p class="list-group-item">
 			<c:if test="${notification.isRead eq 0}">
				<span class="label label-warning">
					未读
				</span>
			</c:if>
			<c:if test="${notification.isRead eq 1}">
				<span class="label label-default">
					已读
				</span>
			</c:if>
			<c:if test="${notification.action eq 1}">
				&nbsp<a>${notification.fromMember.name}</a>
				&nbsp评论了你的话题:<a href="${ctx}/topic/${notification.topic.id}">${notification.topic.title}</a>
			</c:if>
			<c:if test="${notification.action eq 0}">
				&nbsp<a>${notification.fromMember.name}</a>
				&nbsp收藏了你的话题:<a href="${ctx}/topic/${notification.topic.id}">${notification.topic.title}</a>
			</c:if>
			<c:if test="${notification.action eq 2}">
				&nbsp<a>${notification.fromMember.name}</a>
				&nbsp在话题&nbsp<a href="${ctx}/topic/${notification.topic.id}">${notification.topic.title}</a>
				&nbsp中回复了你
			</c:if>
			<span style="color: #999999" class="pull-right">${notification.formatDate(notification.notifyTime)}</span>
		</p>
		</c:forEach>
	</div>
</div>
